package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author suguangjun
 */
@Data
@ApiModel(value = "GoodsCommentDTO对象", description = "商品评论DTO")
public class GoodsCommentDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "商户id", hidden = true)
	private Long sellerId;

	@NotNull
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

	@ApiModelProperty(value = "商品名称", hidden = true)
	private String goodsName;

	@ApiModelProperty(value = "商品图片", hidden = true)
	private String goodsImg;
	@NotBlank
    @ApiModelProperty(value = "用户昵称")
    private String userNickName;
	@NotBlank
    @ApiModelProperty(value = "用户头像")
    private String userAvatar;

	@ApiModelProperty(value = "是否显示", hidden = true)
	private Integer isShow;
	@NotBlank
	@ApiModelProperty(value = "评价内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String img;
	@NotNull
	@ApiModelProperty(value = "商品评分")
	private Integer goodsScore;

	@ApiModelProperty(value = "商户评分")
	private Integer sellerScore;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

	@Data
	public static class ReplyDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotNull
		@ApiModelProperty(value = "id")
		private Long id;
		@NotBlank
		@ApiModelProperty(value = "回复内容")
		private String reply;
	}


}
